let web = { site: 'yahoo', url: 'https://yahoo.com' }

// let obj = { api: '/api/v1', ...web }
// console.log(obj)
// for (const key of Object.keys(web)) {
//   obj[key] = web[key]
// }
// console.log(obj)

// let { url } = web
// console.log(url)

function handler({ url: host }) {
  let url = 'yahoo'

  console.log(url, host)
}

handler(web)
